how to destructure an object